package br.com.caiocarrara.goodbuy.model;

public class Item {

	private Product product;
	private Integer quantity;

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	
	public Double getItemPrice() {
		return this.product.getPrice() * this.quantity;
	}

}
